<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>表格属性</title>

    <style>
        /* table,td{
            border: 1px solid green;
        } */
        /* table,td{
            border-collapse: collapse;
            width: 400px;
            height: 100px;
        } */
        td{
            text-align: center;
            padding-left: 15px;
            padding-right: 15px;
            background-color:black;
            color: white;
        }
        table{
            padding: 20px;
        }
    </style>
</head>
<body>

    <header>
        <h3>表格属性</h3>

        <p><b>边框以及颜色属性</b></p>
        <p>border: 1px solid red</p>

        <h4>折叠边框</h4>
        <p>border-collapse</p>

        <p><b>设置宽高  像素 或是100%等</b></p>
        <p>
            
        </p>
    </header>
    <table>
        <tr>
            <td>单元格</td>
            <td>单元格</td>
            <td>单元格</td>
            <td>单元格</td>
        </tr>
        <tr>
            <td>单元格</td>
            <td>单元格</td>
            <td>单元格</td>
            <td>单元格</td>
        </tr>
        <tr>
            <td>单元格</td>
            <td>单元格</td>
            <td>单元格</td>
            <td>单元格</td>
        </tr>
    </table>
</body>
</html>